package com.medical.interrogation.controller;

import com.medical.common.core.domain.Result;
import com.medical.interrogation.domain.EvaluateForm;
import com.medical.interrogation.service.EvaluateFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/evaluateForm")
public class EvaluateFormController {

    @Autowired
    private EvaluateFormService evaluateFormService;

    @PostMapping("/evaluateInsert")
    public Result evaluateInsert(@RequestBody EvaluateForm evaluateForm){
        return Result.success(evaluateFormService.evaluateInsert(evaluateForm));
    }
}
